﻿using System;

namespace Zinnia.Kernel.Core
{
    /// <summary>
    /// 日志服务接口
    /// </summary>
    public interface ILogService
    {
        /// <summary>
        /// 调试日志
        /// </summary>
        /// <param name="message"></param>
        /// <param name="ex"></param>
        void Debug(string message, Exception ex = null);
        /// <summary>
        /// 错误日志
        /// </summary>
        /// <param name="message"></param>
        /// <param name="ex"></param>
        void Error(string message, Exception ex = null);
        /// <summary>
        /// 信息日志
        /// </summary>
        /// <param name="message"></param>
        /// <param name="ex"></param>
        void Info(string message, Exception ex = null);
    }
    /// <summary>
    /// Log管理服务接口
    /// </summary>
    public interface ILogManagerService
    {
        /// <summary>
        /// 获取指定Log
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        ILogService GetLogger(string name);
    }
}
